home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 03 Pathfinding with Astar / 04 Higgins / Listing2.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-12-09  |  686 b   |  20 lines

  1. /* Copyright (C) Dan Higgins, 2001. 
  2.  * All rights reserved worldwide.
  3.  *
  4.  * This software is provided "as is" without express or implied
  5.  * warranties. You may freely copy and compile this source into
  6.  * applications you distribute provided that the copyright text
  7.  * below is included in the resulting source code, for example:
  8.  * "Portions Copyright (C) Dan Higgins, 2001"
  9.  */
  10.  
  11. typedef unsigned char AStarNodeStatusFlags;
  12. enum
  13. {
  14.     kClear    = 0x00, //empty, unexamined.
  15.     KPassable = 0x01, //examined, node is not blocked
  16.     KBlocked  = 0x02, //examined, node is blocked
  17.     KOpen     = 0x04, //node is on the open list
  18.     KClosed   = 0x08  //node is on the closed list
  19. };
  20.